$(document).ready(function () {
    $('.respotbs').easyResponsiveTabs({
        type: 'default', //Types: default, vertical, accordion
        width: 'auto', //auto or any width like 600px
        fit: true,   // 100% fit in a container
        closed: 'accordion', // Start closed if in accordion view
        activate: function (event) { // Callback function if tab is switched
            var $tab = $(this);
            var $info = $('#tabInfo');
            var $name = $('span', $info);

            $name.text($tab.text());

            $info.show();
        }
    });

    $('.accordion .acc_title').addClass('acc_on').css({ cursor: "pointer"});
    $('.lsidebar .accordion .acc_title').removeClass('acc_on').next().slideUp();
    $('.accordion .acc_title').click(function () {
        if ($(this).hasClass('acc_on')) {
            $(this).removeClass('acc_on').parent().find('.acc_content').slideUp();
        }
        else {
            $(this).addClass('acc_on').parent().find('.acc_content').slideDown();
        }
    });
});


// ---POST COMMENTS ---//
$(document).ready(function () {
    $("#post_comment").click(function () {
        var base_url = $('body').data('baseurl');

        alert('hello');

        var post_id = $('#city').val();
        var name = '';
        var email = '';
        var contact = '';
        var ratting = '';

        var postData = {
            'city_id': city_id,
        };


    });
});





